//
//  AppCell.m
//  SD异步下载网络图片
//
//  Created by WangBiao on 16/9/17.
//  Copyright © 2016年 lsrain. All rights reserved.
//

#import "AppCell.h"
#import "UIImageView+WBWebCaChe.h"

//测试框架

@interface AppCell ()

@property (nonatomic, weak) IBOutlet UIImageView *iconImageView;
@property (nonatomic, weak) IBOutlet UILabel *nameLabel;
@property (nonatomic, weak) IBOutlet UILabel *downloadLabel;

@end

@implementation AppCell

- (void)setApp:(appModel *)app{
    _app = app;
    
    self.nameLabel.text = app.name;
    self.downloadLabel.text = app.download;
    
    // 使用 SDWeb异步下载网路图片
//    [self.iconImageView sd_setImageWithURL:[NSURL URLWithString:app.icon] placeholderImage:[UIImage imageNamed:@"user_default"]];
    
    // 使用WBSDweb下载图片
    [self.imageView WB_setImageWithURLString:app.icon];
    
}
@end
